package view;

import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.SwingConstants;

public class BgButton extends JButton{

	private static final long serialVersionUID = 1L;

	public BgButton(String s){
		setHorizontalTextPosition(SwingConstants.CENTER);
		setOpaque(false);
		setBorderPainted(false);
		setContentAreaFilled(false);
		setIcon(new ImageIcon((new ImageIcon("./img/" + s).getImage().getScaledInstance(40, 40, Image.SCALE_SMOOTH))));
	}	
}
